.class public final Lcom/ninesky/browser/view/f;
.super Landroid/widget/LinearLayout;


# static fields
.field public static final a:I

.field public static final b:I

.field private static final c:I

.field private static final d:I

.field private static final e:I

.field private static final f:I


# instance fields
.field private final g:Lcom/ninesky/browser/BrowserActivity;

.field private h:I


# direct methods
.method static constructor <clinit>()V
    .locals 3

    const/high16 v2, 0x4313

    sget v0, Lcom/ninesky/browser/ed;->a:F

    const/high16 v1, 0x42a0

    mul-float/2addr v0, v1

    float-to-int v0, v0

    sput v0, Lcom/ninesky/browser/view/f;->a:I

    sget v0, Lcom/ninesky/browser/ed;->a:F

    const/high16 v1, 0x42ee

    mul-float/2addr v0, v1

    float-to-int v0, v0

    sput v0, Lcom/ninesky/browser/view/f;->c:I

    sget v0, Lcom/ninesky/browser/ed;->a:F

    mul-float/2addr v0, v2

    float-to-int v0, v0

    sput v0, Lcom/ninesky/browser/view/f;->d:I

    sget v0, Lcom/ninesky/browser/ed;->a:F

    mul-float/2addr v0, v2

    float-to-int v0, v0

    sput v0, Lcom/ninesky/browser/view/f;->e:I

    sget v0, Lcom/ninesky/browser/ed;->a:F

    const/high16 v1, 0x4200

    mul-float/2addr v0, v1

    float-to-int v0, v0

    sput v0, Lcom/ninesky/browser/view/f;->f:I

    sget v0, Lcom/ninesky/browser/ed;->a:F

    const/high16 v1, 0x4140

    mul-float/2addr v0, v1

    float-to-int v0, v0

    neg-int v0, v0

    sput v0, Lcom/ninesky/browser/view/f;->b:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput v0, p0, Lcom/ninesky/browser/view/f;->h:I

    check-cast p1, Lcom/ninesky/browser/BrowserActivity;

    iput-object p1, p0, Lcom/ninesky/browser/view/f;->g:Lcom/ninesky/browser/BrowserActivity;

    const/16 v0, 0x10

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/f;->setGravity(I)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/f;->setChildrenDrawingOrderEnabled(Z)V

    return-void
.end method

.method static synthetic b()I
    .locals 1

    sget v0, Lcom/ninesky/browser/view/f;->c:I

    return v0
.end method

.method static synthetic c()I
    .locals 1

    sget v0, Lcom/ninesky/browser/view/f;->e:I

    return v0
.end method

.method static synthetic d()I
    .locals 1

    sget v0, Lcom/ninesky/browser/view/f;->d:I

    return v0
.end method

.method static synthetic e()I
    .locals 1

    sget v0, Lcom/ninesky/browser/view/f;->f:I

    return v0
.end method

.method private f()V
    .locals 6

    const/4 v5, 0x2

    const/4 v4, 0x1

    const/4 v3, 0x0

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    if-lez v0, :cond_1

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    if-lt v0, v5, :cond_0

    invoke-virtual {p0, v4}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    sget v2, Lcom/ninesky/browser/view/f;->b:I

    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    sub-int/2addr v0, v5

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    sget v2, Lcom/ninesky/browser/view/f;->b:I

    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    invoke-virtual {p0, v3}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iput v3, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    sub-int/2addr v0, v4

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p0

    check-cast p0, Landroid/widget/LinearLayout$LayoutParams;

    iput v3, p0, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    invoke-virtual {v0, p0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_1
    return-void
.end method


# virtual methods
.method public final a()I
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    return v0
.end method

.method public final a(Landroid/view/View;)I
    .locals 1

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/view/f;->indexOfChild(Landroid/view/View;)I

    move-result v0

    return v0
.end method

.method public final a(I)V
    .locals 4

    const/4 v3, 0x1

    if-ltz p1, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    sub-int/2addr v0, v3

    if-gt p1, v0, :cond_0

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/view/f;->removeViewAt(I)V

    :cond_0
    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    if-ne p1, v0, :cond_4

    move v0, v3

    :goto_0
    iget v1, p0, Lcom/ninesky/browser/view/f;->h:I

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v2

    sub-int/2addr v2, v3

    if-le v1, v2, :cond_1

    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    sub-int/2addr v0, v3

    iput v0, p0, Lcom/ninesky/browser/view/f;->h:I

    move v0, v3

    :cond_1
    if-eqz v0, :cond_2

    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/view/ac;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ac;->a()V

    :cond_2
    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_3

    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    sub-int v0, v3, v0

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/view/ac;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ac;->b()V

    :cond_3
    invoke-direct {p0}, Lcom/ninesky/browser/view/f;->f()V

    return-void

    :cond_4
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final a(ILjava/lang/String;)V
    .locals 2

    if-ltz p1, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    if-gt p1, v0, :cond_0

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Lcom/ninesky/browser/view/ac;

    invoke-virtual {p0, p2}, Lcom/ninesky/browser/view/ac;->a(Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public final a(IZ)V
    .locals 6

    const/4 v5, 0x3

    const/4 v4, 0x1

    const/4 v3, 0x0

    if-ltz p1, :cond_1

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    if-gt p1, v0, :cond_1

    new-instance v1, Lcom/ninesky/browser/view/ac;

    iget-object v0, p0, Lcom/ninesky/browser/view/f;->g:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v1, p0, v0}, Lcom/ninesky/browser/view/ac;-><init>(Lcom/ninesky/browser/view/f;Landroid/content/Context;)V

    if-eqz p2, :cond_0

    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    if-ltz v0, :cond_0

    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v2

    sub-int/2addr v2, v4

    if-gt v0, v2, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    const/4 v2, 0x2

    if-ne v0, v2, :cond_2

    invoke-virtual {p0, v3}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/view/ac;

    invoke-virtual {v0, v5}, Lcom/ninesky/browser/view/ac;->a(I)V

    invoke-virtual {p0, v4}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/view/ac;

    invoke-virtual {v0, v5}, Lcom/ninesky/browser/view/ac;->a(I)V

    :cond_0
    :goto_0
    invoke-virtual {p0, v1, p1}, Lcom/ninesky/browser/view/f;->addView(Landroid/view/View;I)V

    if-eqz p2, :cond_3

    invoke-virtual {v1}, Lcom/ninesky/browser/view/ac;->a()V

    iput p1, p0, Lcom/ninesky/browser/view/f;->h:I

    :goto_1
    invoke-virtual {v1}, Lcom/ninesky/browser/view/ac;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    if-nez p1, :cond_4

    move v2, v3

    :goto_2
    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v2

    sub-int/2addr v2, v4

    if-ne p1, v2, :cond_5

    move v2, v3

    :goto_3
    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/view/ac;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-direct {p0}, Lcom/ninesky/browser/view/f;->f()V

    :cond_1
    return-void

    :cond_2
    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/view/ac;

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v2

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v0, v2}, Lcom/ninesky/browser/view/ac;->a(I)V

    goto :goto_0

    :cond_3
    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/view/ac;->a(I)V

    goto :goto_1

    :cond_4
    sget v2, Lcom/ninesky/browser/view/f;->b:I

    goto :goto_2

    :cond_5
    sget v2, Lcom/ninesky/browser/view/f;->b:I

    goto :goto_3
.end method

.method public final b(I)V
    .locals 2

    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    if-eq p1, v0, :cond_1

    if-ltz p1, :cond_1

    invoke-virtual {p0}, Lcom/ninesky/browser/view/f;->getChildCount()I

    move-result v0

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    if-gt p1, v0, :cond_1

    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/view/ac;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ac;->b()V

    :cond_0
    invoke-virtual {p0, p1}, Lcom/ninesky/browser/view/f;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/view/ac;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/ac;->a()V

    iput p1, p0, Lcom/ninesky/browser/view/f;->h:I

    invoke-direct {p0}, Lcom/ninesky/browser/view/f;->f()V

    :cond_1
    return-void
.end method

.method protected final getChildDrawingOrder(II)I
    .locals 2

    iget v0, p0, Lcom/ninesky/browser/view/f;->h:I

    if-lt p2, v0, :cond_0

    sub-int v0, p1, p2

    iget v1, p0, Lcom/ninesky/browser/view/f;->h:I

    add-int/2addr v0, v1

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    :goto_0
    return v0

    :cond_0
    move v0, p2

    goto :goto_0
.end method
